import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import * as ElementPlusIconVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import './index.css'
import Elementplus from 'element-plus'
import axios from  'axios'

const app=createApp(App)

app.use(ElementPlusIconVue.ElementPlus).use(Elementplus).use(router).mount('#app')
axios.defaults.baseURL = process.env.UPLOAD_BASE_URL 
app.config.globalProperties.$axios = axios
for(const [key,component] of Object.entries(ElementPlusIconVue)){
    app.component(key,component)
}